﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlEvaluarFichaAdmision.ascx.vb" Inherits="Pages_Controls_ctlEvaluarFichaAdmision" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<script type="text/javascript">
var keyValue;
function AbrirVentanaRevision(element, key) {
   callbackPanel.SetContentHtml("");
   popup.ShowAtElement(element);
   keyValue = key;
}
function popup_Shown(s, e) {
   callbackPanel.PerformCallback(keyValue);
}
</script>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
   <dx:ASPxGridView ID="gridFichaEvaluacion" runat="server"
      CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" 
      DataSourceID="ObjectDataSourceFichaIncripcion" AutoGenerateColumns="False"
      Caption="Evaluar Ficha de Admisión" Width="100%" KeyFieldName="Codigo">
      <Columns>
         <dx:GridViewDataTextColumn FieldName="Codigo" VisibleIndex="0" Width="50px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataTextColumn>
         <dx:GridViewDataTextColumn FieldName="Membresia" VisibleIndex="1" Width="50px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataTextColumn>
         <dx:GridViewDataTextColumn FieldName="Nombre y Apellido" ReadOnly="True" VisibleIndex="2" Width="250px">
         </dx:GridViewDataTextColumn>
         <dx:GridViewDataDateColumn FieldName="FechaIncripcion" VisibleIndex="3" Width="70px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataDateColumn>

         <dx:GridViewDataDateColumn FieldName="fechaRevision" VisibleIndex="3" Width="70px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataDateColumn>
         <dx:GridViewDataDateColumn FieldName="fechaEvaluacion" VisibleIndex="3" Width="70px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataDateColumn>
         <dx:GridViewDataDateColumn FieldName="fechaAprobacion" VisibleIndex="3" Width="70px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataDateColumn>
         <dx:GridViewDataTextColumn FieldName="Estado" ReadOnly="True" VisibleIndex="4" Width="80px">
            <CellStyle HorizontalAlign="Center" />
         </dx:GridViewDataTextColumn>
         
         <dx:GridViewDataColumn Caption="Evaluar" VisibleIndex="5">
            <DataItemTemplate>
               <div style="text-align:center">
                  <a href="javascript:void(0);" onclick="AbrirVentanaRevision(this, '<%# Container.KeyValue %>')"><img src="../Images/icons/application2.png" alt="Evaluar" style="border:0px" /></a>
               </div>
            </DataItemTemplate>
         </dx:GridViewDataColumn>

         <dx:GridViewDataHyperLinkColumn Caption="Ficha" VisibleIndex="6" FieldName="Codigo" ShowInCustomizationForm="False">
            <PropertiesHyperLinkEdit NavigateUrlFormatString="~/Pages/frmDetalleFichaRead.aspx?Consulta={0}"
               Text="Ver">
            </PropertiesHyperLinkEdit>
            <Settings AllowAutoFilter="False" />
            <CellStyle HorizontalAlign="Center">
            </CellStyle>
         </dx:GridViewDataHyperLinkColumn>

      </Columns>
      <Styles CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful">
          <Header ImageSpacing="5px" SortingImageSpacing="5px" Font-Bold="True" HorizontalAlign="Center" Wrap="True">
          </Header>
          <LoadingPanel ImageSpacing="10px">
          </LoadingPanel>
      </Styles>
      <SettingsLoadingPanel Text="" />
      <ImagesFilterControl>
          <LoadingPanel Url="~/App_Themes/Youthful/Editors/Loading.gif">
          </LoadingPanel>
      </ImagesFilterControl>
      <Images SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
          <LoadingPanelOnStatusBar Url="~/App_Themes/Youthful/GridView/gvLoadingOnStatusBar.gif">
          </LoadingPanelOnStatusBar>
          <LoadingPanel Url="~/App_Themes/Youthful/GridView/Loading.gif">
          </LoadingPanel>
      </Images>
      <StylesEditors>
          <CalendarHeader Spacing="2px">
          </CalendarHeader>
          <ProgressBar Height="25px">
          </ProgressBar>
      </StylesEditors>
      <Settings ShowFilterRow="True" />
   </dx:ASPxGridView>
</ContentTemplate>
</asp:UpdatePanel>

<dx:ASPxPopupControl ID="popup" ClientInstanceName="popup" runat="server" AllowDragging="True"
   PopupHorizontalAlign="OutsideRight" HeaderText="Proceso de Evaluación" Font-Names="Tahoma" Font-Size="11px" HeaderStyle-Font-Bold="true"
   CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful"
   SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css">
   <ContentCollection>
      <dx:PopupControlContentControl runat="server">
         <dx:ASPxCallbackPanel ID="callbackPanel" ClientInstanceName="callbackPanel" runat="server"
            Width="340px" Height="120px" OnCallback="callbackPanel_Callback" RenderMode="Table">
            <PanelCollection>
               <dx:PanelContent runat="server">
                  <table cellpadding="0" cellspacing="1" style="width: 335px; font-size:11px; font-family:Tahoma; color: #333333;">
                     <tr>
                        <td>Código Socio</td>
                        <td><asp:TextBox id="txtCodigo" runat="server" Width="25px" ReadOnly="True" Font-Names="Tahoma" Font-Size="11px"></asp:TextBox></td>
                     </tr>
                     <tr>
                        <td><asp:Label ID="lblFecha" runat="server" Font-Names="Tahoma" Font-Size="11px"></asp:Label></td>
                        <td><asp:TextBox id="txtFecha" runat="server" Width="75px" Font-Names="Tahoma" Font-Size="11px" ReadOnly="True"></asp:TextBox></td>
                     </tr>
                     <tr>
                        <td>Responsable</td>
                        <td><asp:TextBox ID="txtResponsable" runat="server" Width="100px" Font-Names="Tahoma" Font-Size="11px" ReadOnly="True"></asp:TextBox></td>
                     </tr>
                     <tr>
                        <td>Observación</td>
                        <td><asp:TextBox id="txtObservacion" runat="server" Width="230px" Font-Names="Tahoma" Font-Size="11px" Rows="2" TextMode="MultiLine"></asp:TextBox></td>
                     </tr>
                     <tr>
                        <td>Procede</td>
                        <td><asp:CheckBox id="chkProcede" runat="server"></asp:CheckBox></td>
                     </tr>
                     <tr>
                        <td colspan="2" align="center">
                           <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" Font-Names="Tahoma" Font-Size="11px" />
                        </td>
                     </tr>
                     <tr>
                        <th colspan="2" nowrap="nowrap" style="font-size:11px"><dx:ASPxLabel ID="lblMensaje" runat="server" Height="18px" /></th>
                     </tr>
                  </table>
                  <asp:HiddenField ID="hdnFichaIncripcionID" runat="server" />
                  <asp:HiddenField ID="hdnResponsable" runat="server" />
                  <asp:HiddenField ID="hdnEstado" runat="server" />
                  <asp:HiddenField ID="hdnMensaje" runat="server" />
               </dx:PanelContent>
            </PanelCollection>
         </dx:ASPxCallbackPanel>
      </dx:PopupControlContentControl>
   </ContentCollection>
   <ClientSideEvents Shown="popup_Shown" />
   <HeaderStyle Font-Bold="True">
      <BackgroundImage ImageUrl="~/App_Themes/Youthful/Web/pcHeaderBack.gif" Repeat="RepeatX" />
   </HeaderStyle>
</dx:ASPxPopupControl>

   <asp:ObjectDataSource ID="ObjectDataSourceFichaIncripcion" runat="server" OldValuesParameterFormatString="original_{0}"
      SelectMethod="GetData" TypeName="FichaIncripcionTableAdapters.sp_TB_SOC_ESI_FichaIncripcion_EvaluacionTableAdapter">
   </asp:ObjectDataSource>
